<?php
namespace app\models;


class ApiResponseCode
{
    const ExceptionCode = 1000;
    const ExceptionMessage = '系统错误';

    const AccountMissingCode = 1010;
    const AccountMissingMessage = '缺少认证账户信息';

    const TimestampMissingCode = 1020;
    const TimestampMissingMessage = '缺少时间戳信息';

    const TimestampInvalidCode = 1021;
    const TimestampInvalidMessage = '时间戳失效';

    const VerifyMissingCode = 1030;
    const VerifyMissingMessage = '缺少请求校验信息';

    const VerifyInvalidCode = 1031;
    const VerifyInvalidMessage = '请求校验信息失效';

    const SignMissingCode = 1040;
    const SignMissingMessage = '缺少签名信息';

    const SignAuthFailedCode = 1041;
    const SignAuthFailedMessage = '签名认证失败';

    const ParamMissingCode = 1090;
    const ParamMissingMessage = '缺少参数';

    const ParamErrorCode = 1091;
    const ParamErrorMessage = '参数错误';

    const UserTicketErrorCode = 1100;
    const UserTicketErrorMessage = '用户ticket无效';

    const OtherErrorCode = 1099;
    const OtherErrorMessage = '';

    // 业务逻辑错误(从10000开始)
    const OrderNotFoundGoodsErrorCode = 10001;
    const OrderNotFoundGoodsErrorMessage = '未找到订单中此商品';

    const OrderSellingPriceZeroErrorCode = 10002;
    const OrderSellingPriceZeroErrorMessage = '订单中商品销售价异常';

    const OrderSellingPriceErrorCode = 10003;
    const OrderSellingPriceErrorMessage = '订单中商品销售价与实际销售价不符';

    const OrderCrossborderGoodsNeedIDCardInfoErrorCode = 10004;
    const OrderCrossborderGoodsNeedIDCardInfoErrorMessage = '跨境商品需要身份证信息';
}